package com.ea.model;

import java.util.Date;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Text;
import com.google.appengine.api.datastore.Key;

@PersistenceCapable
public class Article {

    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	public Key key;
    
    @Persistent
	public Date date;
	
    @Persistent
    public String title; 
    
    @Persistent
    public String keywords;
    
    @Persistent
	public Text article;
    
    public Article(Date date, String title, String keywords, Text article){
    	this.date = date;
    	this.title = title;
    	this.keywords = keywords;
    	this.article = article;
    	
    }

}
